package ua.com.minus1.lookbattle;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.view.LayoutInflater;
import android.view.View;

/**
 * Created with IntelliJ IDEA.
 * User: Igorek
 * Date: 8/13/12
 * Time: 10:16 PM
 * To change this template use File | Settings | File Templates.
 */
public class ConvertDialogFactory{

    public static AlertDialog create(Context context) {
        LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        View dialogView = inflater.inflate(R.layout.fragment_dialog_convert, null);

        AlertDialog.Builder builder = new AlertDialog.Builder(context)
                .setCancelable(false)
                .setTitle("Convert")
                .setView(dialogView)
                .setPositiveButton("Convert", new DialogInterface.OnClickListener() {
                    public void onClick(DialogInterface dialogInterface, int i) {

                    }
                }).setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
                    public void onClick(DialogInterface dialogInterface, int i) {

                    }
                });
        return builder.create();

    }

}
